package com.xuhui.xuaiagent.demo.invoke;


import dev.langchain4j.community.model.dashscope.QwenChatModel;
import dev.langchain4j.model.chat.ChatLanguageModel;
import org.springframework.stereotype.Component;

/**
 * @author 21829
 */
@Component
public class LongChainInvoke {
    public static void main(String[] args) {
        QwenChatModel chatModel = QwenChatModel.builder()
                .apiKey(TestApiKey.API_KEY)
                .modelName("qwen-plus")
                .build();
        String chatMessage = chatModel.chat("你好,我是王化旭");
        System.out.println(chatMessage);
    }
}
